package config

/**
 * @Description
 * @Author huran
 * @Date
 * @Param
 * @return
 **/

type UserSrvConfig struct {
	Name string `mapstructure:"name"`
}
type ConsulConfig struct {
	Host string `mapstructure:"host" json:"host"`
	Port int    `mapstructure:"port" json:"port"`
}
type ServerConfig struct {
	Name          string        `mapstructure:"name"`
	Port          string        `mapstructure:"port"`
	UserSrvConfig UserSrvConfig `mapstructure:"user_srv"`
	JwtConfig     JwtConfig     `mapstructure:"jwt"`
	ConsulConfig  ConsulConfig  `mapstructure:"consul"`
}

type JwtConfig struct {
	SigningKey string `mapstructure:"key"`
}
